﻿using System.Collections.Generic;
using System.Linq;

namespace CH.FourBoards.LagerWalti.FrontEnd.View.Controls
{
	public class TagGenerator
	{
		public string CreateTagList(IEnumerable<string> tags, string separator = "<br>")
		{
			var badges = tags.Select(CreateTag);
			return string.Join(separator, badges);
		}

		public string CreateTag(string tag)
		{
			return string.Format("<span class=\"label label-success\">{0}</span>", tag);
		}
	}
}